package com.dh.core.config;

import at.pollux.thymeleaf.shiro.dialect.ShiroDialect;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConditionalOnClass(ShiroDialect.class)
public class ThymeleafShiroDialectConfiguration {

	@Bean
	public ShiroDialect shiroDialect() {
		return new ShiroDialect();
	}
}
